package com.example.framework509.logCore.entity;

import java.util.Date;

/**
 * @Description
 * @Author IceSnowSun
 * @Data 0:08
 */
public class RequestLog {
    private Date requestTime;
    private String hostIP;
    private String hostLocation;
    private String requestURL;
    private String requestType;
    private String requestMethodName;
    private Object requestParam;
    private Object responseParam;
    private Long executeTime;
    private String responseStatus;
    private String requestPlatform;
    private String requestBrowser;
    private String errorMsg = "无";

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getRequestPlatform() {
        return requestPlatform;
    }

    public void setRequestPlatform(String requestPlatform) {
        this.requestPlatform = requestPlatform;
    }

    public String getRequestBrowser() {
        return requestBrowser;
    }

    public void setRequestBrowser(String requestBrowser) {
        this.requestBrowser = requestBrowser;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getHostIP() {
        return hostIP;
    }

    public void setHostIP(String hostIP) {
        this.hostIP = hostIP;
    }

    public String getHostLocation() {
        return hostLocation;
    }

    public void setHostLocation(String hostLocation) {
        this.hostLocation = hostLocation;
    }

    public String getRequestURL() {
        return requestURL;
    }

    public void setRequestURL(String requestURL) {
        this.requestURL = requestURL;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getRequestMethodName() {
        return requestMethodName;
    }

    public void setRequestMethodName(String method) {
        this.requestMethodName = method;
    }

    public Object getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(Object requestParam) {
        this.requestParam = requestParam;
    }

    public Object getResponseParam() {
        return responseParam;
    }

    public void setResponseParam(Object responseParam) {
        this.responseParam = responseParam;
    }

    public Long getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Long executeTime) {
        this.executeTime = executeTime;
    }

    public String getResponseStatus() {
        return responseStatus;
    }

    public void setResponseStatus(String responseStatus) {
        this.responseStatus = responseStatus;
    }

    @Override
    public String toString() {
        return "RequestLog{" +
                "requestTime='" + requestTime + '\'' +
                ", hostIP='" + hostIP + '\'' +
                ", hostLocation='" + hostLocation + '\'' +
                ", requestURL='" + requestURL + '\'' +
                ", requestType='" + requestType + '\'' +
                ", requestMethodName='" + requestMethodName + '\'' +
                ", requestParam=" + requestParam +
                ", responseParam=" + responseParam +
                ", executeTime=" + executeTime +
                ", responseStatus='" + responseStatus + '\'' +
                ", requestPlatform='" + requestPlatform + '\'' +
                ", requestBrowser='" + requestBrowser + '\'' +
                ", returnMsg='" + errorMsg + '\'' +
                '}';
    }
}
